Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: regression test all files #325

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

aner-starkware
Copy link
Contributor

@aner-starkware aner-starkware commented Jul 23, 2024

This change is Reviewable

@aner-starkware aner-starkware self-assigned this Jul 23, 2024
@aner-starkware aner-starkware changed the base branch from main to aner/refactor_download_directory July 23, 2024 14:01
@aner-starkware aner-starkware changed the title Aner/regression test all files test: regression test all files Jul 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.03%. Comparing base (79dcb89) to head (9bb981a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #325   +/-   ##
=======================================
  Coverage   70.03%   70.03%           
=======================================
  Files          38       38           
  Lines        2109     2109           
  Branches     2109     2109           
=======================================
  Hits         1477     1477           
  Misses        562      562           
  Partials       70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Benchmark movements:
full_committer_flow performance improved 😺
full_committer_flow time: [28.654 ms 28.702 ms 28.757 ms]
change: [-1.5993% -1.3470% -1.0863%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe

Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @aner-starkware, @dorimedini-starkware, and @nimrod-starkware)


crates/committer_cli/src/tests/regression_tests.rs line 139 at r2 (raw file):

}

pub async fn assert_committer_flow(input: &str, output_path: &str) {

Personal preference

Suggestion:

test_single_committer_flow(

crates/committer_cli/src/tests/regression_tests.rs line 171 at r2 (raw file):

    assert!(execution_time.as_secs_f64() < MAX_TIME_FOR_COMMITTER_FLOW_BECHMARK_TEST);
}
#[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]

Please change the benches directory to something more general (like flow_test_inputs or test_inputs) to match both the regression tests (which uses most of these files) and the becnhmarking. The current name is misleading.

Suggestion:

 regression 

crates/committer_cli/src/tests/regression_tests.rs line 177 at r2 (raw file):

}

#[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]

Suggestion:

regression

crates/committer_cli/src/tests/regression_tests.rs line 192 at r2 (raw file):

    }
    assert_eq!(file_counter, EXPECTED_NUMBER_OF_FILES);
}

Please start with this check, it's a shame to run the committer over 99 files to fail in this. You can copy the iterator and call count on one of the copies at the beginning. Maybe there is a more efficient method.

Code quote:

    assert_eq!(file_counter, EXPECTED_NUMBER_OF_FILES);
}

Base automatically changed from aner/refactor_download_directory to main July 24, 2024 09:58
Copy link
Contributor Author

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @dorimedini-starkware, @nimrod-starkware, and @TzahiTaub)


crates/committer_cli/src/tests/regression_tests.rs line 171 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Please change the benches directory to something more general (like flow_test_inputs or test_inputs) to match both the regression tests (which uses most of these files) and the becnhmarking. The current name is misleading.

Done.


crates/committer_cli/src/tests/regression_tests.rs line 177 at r2 (raw file):

}

#[ignore = "To avoid running the benchmark test in Coverage or without the --release flag."]

Done.


crates/committer_cli/src/tests/regression_tests.rs line 192 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Please start with this check, it's a shame to run the committer over 99 files to fail in this. You can copy the iterator and call count on one of the copies at the beginning. Maybe there is a more efficient method.

Done. Though I'm not sure that I agree.

Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware and @nimrod-starkware)


crates/committer_cli/src/tests/regression_tests.rs line 192 at r2 (raw file):

Previously, aner-starkware wrote…

Done. Though I'm not sure that I agree.

About what?

@aner-starkware aner-starkware added this pull request to the merge queue Jul 24, 2024
Merged via the queue into main with commit 6236ba9 Jul 24, 2024
14 checks passed
@aner-starkware aner-starkware deleted the aner/regression_test_all_files branch July 24, 2024 11:24
aner-starkware added a commit that referenced this pull request Jul 24, 2024
* test: regression test for all regression files

* refactor: extract assert committer flow function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants